﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LabManager.UserControls.TabControls
{
    public partial class Infrastructure : UserControl
    {
        public Infrastructure()
        {
            InitializeComponent();
            tabEnvironment.Load();
        }

        private void tabInfrastructure_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch ((sender as TabControl).SelectedIndex)
            {
                case 0:
                    tabEnvironment.Load();
                    break;
                case 1:
                    tabManufacturer.Load();
                    break;
            }
        }
    }
}
